(x_draw_glyph_string_foreground): Set background mode to TRANSPARENT before
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 27 Oct 2006 22:35:49 +0000 (22:35 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 27 Oct 2006 22:35:49 +0000 (22:35 +0000)
using overstrike to simulate bold faces.

src/w32term.c

index c00fdb8923c8b1d4defdae89f208a328392c4e07..e22a9dbe1ab344a62304bbc8ff9bd1d39fa7d065 100644 (file)
@@ -1591,7 +1591,10 @@ x_draw_glyph_string_foreground (s)
        {
          /* For overstriking (to simulate bold-face), draw the
             characters again shifted to the right by one pixel.  */
+         int old_BkMode = SetBkMode (s->hdc, TRANSPARENT);
          w32_text_out (s, x + 1, s->ybase - boff, s->char2b, s->nchars);
+         if (old_BkMode && old_BkMode != TRANSPARENT)
+           SetBkMode (s->hdc, old_BkMode);
        }
     }
   if (s->font && s->font->hfont)